home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Toolbox
/
Visual Basic Toolbox (P.I.E.)(1996).ISO
/
buttons
/
selvb25
/
semarks.frm
< prev
next >
Wrap
Text File
|
1995-12-30
|
17KB
|
541 lines
VERSION 2.00
Begin Form MarkDemo
BackColor = &H00C0C0C0&
BorderStyle = 1 'Fixed Single
Caption = "Mark Demo"
ClientHeight = 4305
ClientLeft = 1215
ClientTop = 1965
ClientWidth = 8340
Height = 4710
Left = 1155
LinkTopic = "Form2"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 4305
ScaleWidth = 8340
Top = 1620
Width = 8460
Begin Frame Frame1
BackColor = &H00C0C0C0&
Caption = "KnobStyle"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 1425
Left = 6480
TabIndex = 31
Top = 120
Width = 1605
Begin OptionButton Option2
BackColor = &H00C0C0C0&
Caption = "Circle"
Height = 225
Index = 0
Left = 210
TabIndex = 35
Top = 270
Width = 1125
End
Begin OptionButton Option2
BackColor = &H00C0C0C0&
Caption = "Pointer"
Height = 225
Index = 1
Left = 210
TabIndex = 34
Top = 540
Width = 1095
End
Begin OptionButton Option2
BackColor = &H00C0C0C0&
Caption = "Complex"
Height = 225
Index = 2
Left = 210
TabIndex = 33
Top = 810
Width = 1005
End
Begin OptionButton Option2
BackColor = &H00C0C0C0&
Caption = "User"
Height = 225
Index = 3
Left = 210
TabIndex = 32
Top = 1080
Width = 1005
End
End
Begin HScrollBar HScroll1
Height = 240
Index = 2
Left = 5040
Max = 100
TabIndex = 1
Top = 2280
Width = 2715
End
Begin HScrollBar HScroll1
Height = 240
Index = 1
Left = 5040
Max = 100
TabIndex = 6
Top = 1980
Width = 2715
End
Begin SELECTOR Selector1
Angle = 210
AutoAlign = -1 'True
AutoAngle = -1 'True
AutoAngleConfine= 0 'False
AutoOffset = -1 'True
AutoOffsetDistance= 0
AutoOffsetStyle = 0 ' 0 - Circular
AutoRadius = 0.8
AutoStartAngle = 210
AutoStopAngle = 330
AVersion = 0
BackgroundColor = &H00C0C0C0&
BevelInner = 1 ' 1 - Raised
BevelOuter = 2 ' 2 - Inset
BevelWidth = 2
BorderType = 1 ' 1 - Bevel
BorderWidth = 2
FontID = 0
FrameColor = &H00000000&
FrameScaleX = 0
FrameScaleY = 0
FrameStyle = 0 ' 0 - None
Height = 3825
Highlight = 0 'False
HighlightColor = &H00000000&
KnobColor = &H00808080&
KnobOriginX = 0
KnobOriginY = 0
KnobRadius = 0.6
KnobStyle = 0 ' 0 - Cicular
KnobUserDefined = "0,1000, 200,800, 150,700, 500,-600, 0,-500, -500,-600, -150,700, -200,800"
Left = 120
LineDisplay = 0 'False
LineInnerRadius = 0.4
LineThickness = 1
MarkUserDefined = "0,0, 0,1000, 500,700, 200,700, 200,0"
MouseControl = -1 'True
OutlineAlign = 0 ' 0 - Left
OutlineColor = &H00000000&
OutlineTitle = ""
OutlineWidth = 0
Radius = 0
TabIndex = 29
Top = 210
Value = 0
Width = 3495
XScale = 0
YScale = 0
ZLoad = SEMARKS.FRX:0000
End
Begin TextBox Text1
Height = 1125
Left = 3840
MultiLine = -1 'True
TabIndex = 3
Top = 2910
Width = 4215
End
Begin Frame Frame3
BackColor = &H00C0C0C0&
Caption = "MarkColor"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 1425
Left = 5220
TabIndex = 22
Top = 120
Width = 1215
Begin Label Colors
BackColor = &H000080FF&
Height = 225
Index = 8
Left = 270
TabIndex = 4
Top = 900
Width = 225
End
Begin Label Colors
BackColor = &H00FF00FF&
Height = 225
Index = 7
Left = 750
TabIndex = 9
Top = 900
Width = 225
End
Begin Label Colors
BackColor = &H00FF0000&
Height = 225
Index = 6
Left = 270
TabIndex = 10
Top = 660
Width = 225
End
Begin Label Colors
BackColor = &H0000FFFF&
Height = 225
Index = 5
Left = 510
TabIndex = 11
Top = 900
Width = 225
End
Begin Label Colors
BackColor = &H0000FF00&
Height = 225
Index = 4
Left = 750
TabIndex = 12
Top = 420
Width = 225
End
Begin Label Colors
BackColor = &H000000FF&
Height = 225
Index = 3
Left = 750
TabIndex = 13
Top = 660
Width = 225
End
Begin Label Colors
BackColor = &H00FFFFFF&
Height = 225
Index = 2
Left = 510
TabIndex = 14
Top = 420
Width = 225
End
Begin Label Colors
BackColor = &H00808080&
Height = 225
Index = 1
Left = 510
TabIndex = 15
Top = 660
Width = 225
End
Begin Label Colors
BackColor = &H00000000&
Height = 225
Index = 0
Left = 270
TabIndex = 16
Top = 420
Width = 225
End
End
Begin Frame Frame2
BackColor = &H00C0C0C0&
Caption = "MarkStyle"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 1425
Left = 3810
TabIndex = 17
Top = 120
Width = 1365
Begin OptionButton Option1
BackColor = &H00C0C0C0&
Caption = "User"
Height = 225
Index = 4
Left = 90
TabIndex = 20
Top = 1110
Width = 1005
End
Begin OptionButton Option1
BackColor = &H00C0C0C0&
Caption = "Arrow"
Height = 225
Index = 3
Left = 90
TabIndex = 24
Top = 900
Width = 1005
End
Begin OptionButton Option1
BackColor = &H00C0C0C0&
Caption = "Triangular"
Height = 225
Index = 2
Left = 90
TabIndex = 8
Top = 690
Width = 1215
End
Begin OptionButton Option1
BackColor = &H00C0C0C0&
Caption = "Circular"
Height = 225
Index = 1
Left = 90
TabIndex = 19
Top = 480
Width = 1095
End
Begin OptionButton Option1
BackColor = &H00C0C0C0&
Caption = "None"
Height = 225
Index = 0
Left = 90
TabIndex = 18
Top = 270
Width = 1125
End
End
Begin HScrollBar HScroll1
Height = 240
Index = 0
Left = 5040
Max = 100
TabIndex = 0
Top = 1680
Width = 2715
End
Begin Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " "
Height = 195
Index = 2
Left = 7800
TabIndex = 7
Top = 2280
Width = 450
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "MarkWidth:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 195
Index = 2
Left = 4215
TabIndex = 23
Top = 2280
Width = 825
End
Begin Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " "
Height = 195
Index = 1
Left = 7800
TabIndex = 28
Top = 1980
Width = 450
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "MarkOuterRadius:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 195
Index = 1
Left = 3750
TabIndex = 30
Top = 1980
Width = 1290
End
Begin Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "MarkUserDefined: (x,y pair list defines shape )"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 195
Index = 4
Left = 3840
TabIndex = 27
Top = 2670
Width = 3225
End
Begin Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " "
Height = 195
Index = 5
Left = 1890
TabIndex = 5
Top = 3450
Width = 120
End
Begin Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " "
Height = 195
Index = 4
Left = 1950
TabIndex = 25
Top = 3840
Width = 90
End
Begin Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " "
Height = 195
Index = 3
Left = 1860
TabIndex = 21
Top = 3450
Width = 210
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "MarkInnerRadius:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 195
Index = 0
Left = 3780
TabIndex = 2
Top = 1680
Width = 1260
End
Begin Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " "
Height = 195
Index = 0
Left = 7800
TabIndex = 26
Top = 1680
Width = 450
End
End
Sub Colors_Click (Index As Integer)
selector1.MarkColor = colors(Index).BackColor
End Sub
Sub Form_Load ()
hscroll1(0) = selector1.MarkInnerRadius * 100
hscroll1(1) = selector1.MarkOuterRadius * 100
hscroll1(2) = selector1.MarkWidth * 100
option1(selector1.MarkStyle) = True
text1 = selector1.MarkUserDefined
selector1.KnobStyle = 2
option2(2) = True
selector1.MarkStyle = 2
option1(2) = True
For i% = 0 To 2
label2(i%) = hscroll1(i%) / 100
Next
End Sub
Sub HScroll1_Change (Index As Integer)
Select Case Index
Case 0
selector1.MarkInnerRadius = hscroll1(0) / 100
label2(0) = hscroll1(0) / 100
Case 1
selector1.MarkOuterRadius = hscroll1(1) / 100
label2(1) = hscroll1(1) / 100
Case 2
selector1.MarkWidth = hscroll1(2) / 100
label2(2) = hscroll1(2) / 100
End Select
End Sub
Sub HScroll1_Scroll (Index As Integer)
Select Case Index
Case 0
selector1.MarkInnerRadius = hscroll1(0) / 100
label2(0) = hscroll1(0) / 100
Case 1
selector1.MarkOuterRadius = hscroll1(1) / 100
label2(1) = hscroll1(1) / 100
Case 2
selector1.MarkWidth = hscroll1(2) / 100
label2(2) = hscroll1(2) / 100
End Select
End Sub
Sub Option1_Click (Index As Integer)
selector1.MarkStyle = Index
End Sub
Sub Option2_Click (Index As Integer)
selector1.KnobStyle = Index
End Sub
Sub Text1_Change ()
selector1.MarkUserDefined = text1
End Sub